function maximumWealth(accounts: number[][]): number {
    const arr = accounts.map(item => {
        return item.reduce((sum,num)=>{
            return sum + num
        },0)
    })
    return Math.max(...arr)
};
const accounts = [[1,5],[7,3],[3,5]]
console.log(maximumWealth(accounts))